std::basic_ostringstream::str
From Cppreference
< cpp | io | basic ostringstream
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Input/output library | ||||||||||||||||||||||||||||||||||||||||
| std::basic_ostringstream | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
| basic_string<CharT,Traits,Allocator> str() const;
| (1) | |
| void str(const basic_string<CharT,Traits,Allocator>& new_str);
| (2) | |
Manages the contents of the underlying string object.
1) Returns a copy of the underlying string.
2) Replaces the contents of the underlying string.
[edit] Parameters
| new_str | - | new contents of the underlying string |
[edit] Return value
1) a copy of the underlying string object.
2) (none)
[edit] Example
| This section is incomplete |